package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2022/03/23 11:45
 */
@Controller
public class HelloController {

    @RequestMapping("hello")
    @ResponseBody//响应json，或字符串
    public String hello() {
        return "hello springmvc";
    }
}
